package org.blueoxygen.kukuruyuk.actions;

import org.blueoxygen.cimande.CimandeAction;
import org.blueoxygen.cimande.security.SessionCredentials;
import org.blueoxygen.cimande.security.SessionCredentialsAware;

	public class RoleKukuruyukAction extends CimandeAction 
	implements SessionCredentialsAware {
	protected SessionCredentials sessionCredentials;
	
	private String projectCoordinator="8a8a8a951f5f7055011f5f733cdf0007";
	private String staffEntry="8a8a8a951f5f7055011f5f7368630008";
	private String projectManager="8a8a8a951f62f417011f638f5f5a0001";
	private String staffAdministrasi="8a8a8a951f62f417011f638fec4f0002";
	
	
	public boolean getIsProjectCoordinator(){
		if(projectCoordinator.equalsIgnoreCase(sessionCredentials.getCurrentUser().getRole().getId())){
				return true;
		}
				return false;
	
		}
	public boolean getIsStaffEntry(){
		if(staffEntry.equalsIgnoreCase(sessionCredentials.getCurrentUser().getRole().getId())){
				return true;
		}
				return false;
	
		}
	public boolean getIsProjectManager(){
		if(projectManager.equalsIgnoreCase(sessionCredentials.getCurrentUser().getRole().getId())){
				return true;
		}
				return false;
	
		}
	public boolean getIsStaffAdministrasi(){
		if(staffAdministrasi.equalsIgnoreCase(sessionCredentials.getCurrentUser().getRole().getId())){
				return true;
		}
				return false;
}
	@Override
	public void setSessionCredentials(SessionCredentials sessionCredentials) {
		// TODO Auto-generated method stub
		this.sessionCredentials = sessionCredentials;
	}
}